package cn.itsource.crm.service.impl;


import cn.itsource.crm.domain.MyUser;
import cn.itsource.crm.mapper.MyUserMapper;
import cn.itsource.crm.service.IMyUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MyUserServiceImpl implements IMyUserService {
    @Autowired
    private MyUserMapper myUserMapper;
    @Override
    public List<MyUser> queryAll() {
        return myUserMapper.queryAll();
    }

    @Override
    public void setPassword(MyUser user) {
        myUserMapper.update(user);
    }

}
